export const validateTel = (rule, value, callback) => {
    /* let reg =/^1[3456789]\d{9}$/; */
    /* let reg=/^(\\+\\d{2}-)?(\\d{2,3}-)?([1][3,4,5,7,8][0-9]\\d{8})$/*/
    let reg=/^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$/;
    if (value && !reg.test(value)) {
        callback("书写格式错误");
    } else {
        callback();
    }
};
export const validateEmail = (rule, value, callback) => {
    let reg = /^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;
   /*  /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/ */
  /*  /^[A-Za-z0-9]+([-_.][A-Za-z0-9]+)*@([A-Za-z0-9]+[-.])+[A-Za-z0-9]{2,5}$/ */
    if (value && !reg.test(value)) {
        callback("书写格式错误");
    } else {
        callback();
    }
};